package com.ss.s2_DataType;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/12 - 03 - 12 - 16:41
 * 局部变量：定义在方法中
 * 成员变量；定义在类中，方法外
 */
/*public class TestVar04 {
    int b = 20;

    public static void main(String[] args) {
        System.out.println(a);
        int a = 10;
        System.out.println(a);
        System.out.println(b);
        {
            int c = 40;
            System.out.println(c);
            int a = 50;
        }
        System.out.println(c);
    }
    public void eat(){
        System.out.println(b);
        System.out.println(a);
        int a = 30;
        System.out.println(a);
    }
}*///不运行
